package com.econ.powercloud.ems.common.enums;

/**
 * @Author : zjf
 * @Description : 受益报表的日报表 中一些固定位置的中文描述信息
 * 如：第一行，第一列为 储能电站充/用电电量
 * code: 列-行，desc:对应的位置的描述信息
 * @Date : 2021/10/21 11:40
 * @Modified by : zjf
 */
public enum IncomeDayReportLocationDesc {


    FIRST_FIRST("1-1", "储能装置充/用电电量"),
    FIRST_SECOND("1-2","正向有功(总)"),
    SECOND_FIRST("2-1","储能装置充/用电电量"),
    SECOND_SECOND("2-2","正向有功(尖)"),
    THIRD_FIRST("3-1","储能装置充/用电电量"),
    THIRD_SECOND("3-2","正向有功(峰)"),
    FOURTH_FIRST("4-1","储能装置充/用电电量"),
    FOURTH_SECOND("4-2","正向有功(平)"),
    FIFTH_FIRST("5-1","储能装置充/用电电量"),
    FIFTH_SECOND("5-2","正向有功(谷)"),
    SIXTH_FIRST("6-1","储能装置充/用电电量"),
    SIXTH_SECOND("6-2","充/用电电费总计"),
    SEVENTH_FIRST("7-1","储能装置放电电量"),
    SEVENTH_SECOND("7-2","反向有功(总)"),
    EIGHTH_FIRST("8-1","储能装置放电电量"),
    EIGHTH_SECOND("8-2","反向有功(尖)"),
    NINTH_FIRST("9-1","储能装置放电电量"),
    NINTH_SECOND("9-2","反向有功(峰)"),
    TEN_FIRST("10-1","储能装置放电电量"),
    TEN_SECOND("10-2","反向有功(平)"),
    ELEVENTH_FIRST("11-1","储能装置放电电量"),
    ELEVENTH_SECOND("11-2","反向有功(谷)"),
    TWELFTH_FIRST("12-1","储能装置放电电量"),
    TWELFTH_SECOND("12-2","放电电费总计"),
    THIRTEENTH_FIRST("13-1","本期节约电量"),
    THIRTEENTH_SECOND("13-2","节约电费=放电电费总计-充/用电电费总计"),
    FOURTEENTH_FIRST("14-1","两方分享比例"),
    FOURTEENTH_SECOND("14-4","本期节约电费丙方分享金额(本期节约电费X丙方分享比例)")
    ;

    private String code;
    private String desc;

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    IncomeDayReportLocationDesc(String code, String desc){
        this.code=code;
        this.desc=desc;
    }

    public static String getDescFromCode(String code){
        for(IncomeDayReportLocationDesc type: IncomeDayReportLocationDesc.values()){
            if(type.getCode().equals(code)){
                return type.getDesc();
            }
        }
        return null;
    }

}
